﻿package cn.hadron.aa.action.admin;
import org.apache.struts2.convention.annotation.*;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
@Controller("indexAdmin")//控制层的Spring注解  
@Scope("prototype") //支持多例
@ParentPackage("admin") //struts.xml配置文件的package名称
@Namespace("/admin")//表示当前Action所在命名空间
public class IndexAction extends ActionSupport {
	@Override
	@Action(value="indexAdmin",
			interceptorRefs={ //表示拦截器引用  
            	@InterceptorRef("defaultStack"),  
            	@InterceptorRef("authority")  
            },  
            results={@Result(name="success",location="/admin/index2.jsp")})
	public String execute() throws Exception {
		return SUCCESS;
	}
}